export default {
  namespaced: true,
  state() {
    return {
      userInfo: {
        id: '',
        avatar: '',
        nickname: '',
        account: '',
        mobile: '',
        token: ''
      },
      redirectUrl: '/'
    }
  },
  mutations: {
    changeUser(state, payload) {
      state.userInfo = payload
    },
    changeRedirectUrl(state, payload) {
      state.redirectUrl = payload
    }
  }
}
